package com.shanshan.system.mapper;

import com.shanshan.system.entity.News;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author shanshan
 * @since 2023-01-31
 */
public interface NewsMapper extends BaseMapper<News> {

    //修改状态
    int updateStatus(@Param("id") int id, @Param("status") int status);
    //修改置顶状态
    int updateUppid(@Param("id") int id,@Param("uppid") int uppid);

    List<News> findAllKind1();


    List<News> findAllKind2();

    News findAllKind1ById(Integer id);

    News findAllKind2ById(Integer id);
}
